package kotan;

import java.util.Arrays;

public class AuthInfo {
    public static final AuthInfo NO_AUTH = new AuthInfo(null, null);
    
    private final String email;
    private final char[] password;

    public AuthInfo(String email, char[] password) {
        this.email = email;
        this.password = password != null ? Arrays.copyOf(password, password.length) : null;
    }
    
    public String getEmail() {
        return email;
    }

    public char[] getPassword() {
        return Arrays.copyOf(password, password.length);
    }
}
